<?php
$js_array = array(
    'jquery/jqgrid/src/grid.loader.js',
    'jquery/jqgrid/src/i18n/grid.locale-en.js',
    'jquery/jqgrid/js/jquery.jqGrid.min.js',
    'jquery/validate/jquery.validate.js',
    'jquery/validate/additional-methods.js',
    'lesson.js',
);
$css = array(
        'jquery/ui.jqgrid.css',
);
$vars = 'var user_type = "'._session('user_type').'"';
get_backend_header($js_array, $css, $vars);
?>
<?php get_group_sidebar($group_id); ?>
<div id ="content" >
    <h2 class ="title">Download files - <?php echo $lesson_name; ?></h2>

    <div id="lessonfiles_form" name="lessonfiles_form" class="form">
            <input type="hidden" id="group_id" name="group_id" value="<?php echo $group_id; ?>" />
            <input type="hidden" id="lesson_id" name="lesson_id" value="<?php echo $lesson_id; ?>" />

            <div class ="clear"></div>

            <div class="buttons">
                <a href="<?php echo site_url('lesson/list_records/'.$group_id); ?>" id="cancel" name="cancel">Back</a>
            </div>
    </div>

    <table id="lessonFilesGrid" class="scroll"></table>
    <div id="pagination" class="scroll"></div>
</div>

<script type="text/javascript">
        lessonFilesGrid();
        $('#cancel').button({
		icons: {primary: 'ui-icon-arrowreturn-1-w'}
	});
</script>
<?php
get_backend_footer();